﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectSchedule.Entity
{
    public class TWExtendInfo : TWBasicInfo
    {
        public TWExtendInfo(TWBasicInfo basic)
        {
            ID = basic.ID;
            Position = basic.Position;
            Long = basic.Long;
            Width = basic.Width;
            Height = basic.Height;
            HangingHeight = basic.HangingHeight;

            _sectionOfDate = new Dictionary<String, String>();
        }

        /// <summary>
        /// 组
        /// </summary>
        public Char Group { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public Int32 OrderNo { get; set; }

        /// <summary>
        /// 优先级
        /// </summary>
        public Int32 Priority { get; set; }

        /// <summary>
        /// 放进来能经过的胎位
        /// </summary>
        public String[] GetInPositions { get; set; }

        /// <summary>
        /// 放出去能经过的胎位
        /// </summary>
        public String[] GetOutPositions { get; set; }

        private IDictionary<String, String> _sectionOfDate;

        /// <summary>
        /// 胎位上每个日期所放的分段
        /// </summary>
        public IDictionary<String, String> SectionOfDate
        {
            get
            {
                return _sectionOfDate;
            }
        }
    }
}
